﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectAuditors.aspx.cs" Inherits="SelectAuditors" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <META   HTTP-EQUIV="Pragma"   CONTENT="no-cache">   
   <META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache">   
   <META   HTTP-EQUIV="Expires"   CONTENT="0"> 
    <title>选择专家</title>
    <base target="_self"/>
  <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:White">
    <form id="form1" runat="server" >
        <ajaxToolkit:ToolkitScriptManager ID="AjaxScriptManager" runat="server" EnableScriptGlobalization="true"
                    EnableScriptLocalization="true">
                </ajaxToolkit:ToolkitScriptManager>
   <h2>
       为报告：<asp:Label ID="LabelReportID" runat="server"></asp:Label><asp:Label ID="LabelFlow" runat="server"></asp:Label></h2>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
             
                      <span>请选择部门：
                    <asp:DropDownList ID="DDLdept" runat="server" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="DDLdept_SelectedIndexChanged">
                    </asp:DropDownList></span>
                    <br />
                    <span><strong>在切换单位之前，请先单击按钮【选定】保存当前已经选定的审批人.</strong></span>
                    <div>
                        <asp:GridView ID="GridViewEmp" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False" Width="100%" OnRowDataBound="GridViewEmp_RowDataBound" DataKeyNames="Emp_ID">
                            <RowStyle BackColor="White" ForeColor="#330099" />
                            <Columns>
                            <asp:TemplateField HeaderText="选中">
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                                <asp:BoundField DataField="Emp_ID" HeaderText="员工编号">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FullName" HeaderText="员工姓名">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Sex_Name" HeaderText="性别">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Dept_Name" HeaderText="部门" />
                            <asp:BoundField DataField="Phone" HeaderText="联系电话">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            </Columns>
                            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                        </asp:GridView>
                        <span>
                        <asp:Button ID="BtnSelect" runat="server" Text="选定" Height="20px" Width="64px" OnClick="BtnSelect_Click" />
                        &nbsp; &nbsp; 
                        <asp:Button ID="BtnOK" runat="server" Text="选择完成" Height="20px" Width="64px" OnClick="BtnOK_Click" />
                        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
                        <input id="ButtonCancelHtml" type="button" value="取消" style="width: 58px; height: 20px"  onclick="javascript:window.close()"/>
                        </span>
                        <br />
                        
                        <span>已选定的审批人：<asp:Label ID="LabelSelectedAuditors" runat="server"></asp:Label></span>
                        <br />
                        <span>
                            <asp:Label ID="LabelError" runat="server"></asp:Label></span>
                      </div>
            </ContentTemplate>
        </asp:UpdatePanel>
              <br />
       
    </form>
</body>
</html>
